cmake_minimum_required(VERSION 3.6 )

project(Tool)
set(MY_SRC_LIST Common.cpp ThreadPool.cpp)

if (BUILD_SDK_TO_IOS)
    set(MY_SRC_LIST ${MY_SRC_LIST} AppleLogSink.cpp LogShow.mm)
endif ()
add_library(${PROJECT_NAME} STATIC ${MY_SRC_LIST})
target_link_libraries(${PROJECT_NAME} PRIVATE glog boost_strip)
target_include_directories(${PROJECT_NAME}
        PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
        $<INSTALL_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
        )